//
//  SJMyApplyDetailVC.m
//  SJPay
//
//  Created by 凯朱 on 2024/12/1.
//

#import "SJMyApplyDetailVC.h"

@interface SJMyApplyDetailVC ()

@end

@implementation SJMyApplyDetailVC
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    self.navigationController.navigationBar.hidden = YES;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self loadData];
}


-(void)loadData{
    self.view.backgroundColor = KBgColor;
    _bgView.layer.cornerRadius = 15;
    _bgView.layer.masksToBounds = YES;
   
    NSString *key = [NSString stringWithFormat:@"curOrder_%@",kUserInfo.userId];
    NSDictionary *applyInfo = [[NSUserDefaults standardUserDefaults] objectForKey:key];
    NSString *orderId = kSTRING(applyInfo[@"id"]);
    NSString *money = kSTRING(applyInfo[@"money"]);
    NSString *dateStr = kSTRING(applyInfo[@"dateStr"]);
    NSString *lixi = kSTRING(applyInfo[@"lixi"]);
    NSString *backMoney = kSTRING(applyInfo[@"backMoney"]);
    
    _cLbl1.text = orderId;
    _cLbl2.text = dateStr;
    _cLbl3.text = backMoney;
    _cLbl4.text = money;
    _cLbl5.text = lixi;
  
    _topLbl.text = kLocalString(@"等待放款");
    _topLbl2.text = kLocalString(@"订单已经提交，请您耐心等待！");
    
    _titleLbl1.text = kLocalString(@"订单编号");
    _titleLbl2.text = kLocalString(@"还款日");
    _titleLbl3.text = kLocalString(@"应还金额");
    _titleLbl4.text = kLocalString(@"到账金额");
    _titleLbl5.text = kLocalString(@"利息");
    _titleLbl6.text = kLocalString(@"服务费");
    
}


@end
